package com.ly.common.core.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 公共批量修改-dto
 *
 * @author luoyun
 * @Date: 2023-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "批量修改入参")
public class CommonBatchUpdateDTO<T> {

    @Schema(description = "类型")
    private String type;

    /**
     * 组织编码
     */
    @Schema(description = "组织编码")
    private String orgCode;

    /**
     * 组织名称
     */
    @Schema(description = "组织名称")
    private String orgName;

    @NotEmpty(message = "新增数据不能为空")
    @Schema(description = "批量数据")
    private List<T> datas;
}
